﻿using System.ComponentModel;
using System.Windows;
using System.Windows.Data;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for EditEventWindow.xaml
    /// </summary>
    public partial class TPAV33
    { 
        VMAPS VMAPS;
        public TPAV33()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VICC_MKRF();
            DataContext = MV;  
            InitializeComponent(); 

        }
        public override void Window_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            if (IsLoaded)
                return;
            base.Window_Loaded(sender, e);
            VMAPS = DataContext as VMAPS; 
            vm.PropertyChanged += vm_PropertyChanged;
        }

        void vm_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
           
            if (e.PropertyName == "dwMKRF")
            {
                if (VMAPS.dwMKRF == null)
                    return;
                JOBID = VMAPS.dwMKRF["ABAID"].ToString();
            }
        } 
    }
}
